package com.yr.feiyu.web.service;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.yr.feiyu.dao.TXrUserMapper;
import com.yr.feiyu.model.TXrUser;
@Service
public class UserService {

	@Autowired
	private TXrUserMapper userMapper;
	
	public List<TXrUser> getUsers(){
		TXrUser user = new TXrUser();
		EntityWrapper<TXrUser> ew = new EntityWrapper<TXrUser>(user, "id DESC");
		
		RowBounds rb = new RowBounds(0, 10);
		List<TXrUser> list = userMapper.selectList(RowBounds.DEFAULT, ew);
		return list;
	}
}
